import { _decorator, Component, Node } from 'cc';
import { BaseComponent } from '../../Manager/UIManager/BaseComponent';
const { ccclass, property } = _decorator;

@ccclass('PopSign')
/**
 * 签到界面
 */
export class PopSign extends BaseComponent {

    //本地缓存
    private SignKey: string = "SignKey";

    private SignData: {
        SignDay: number
    } = null;

    private DeafultSignData: {
        SignDay: number
    } = {
            SignDay: -1
        }

    protected Init(): void {
        if (app.dataManager.GetStorage(this.SignKey)) {
            this.SignData = JSON.parse(app.dataManager.GetStorage(this.SignKey));
        } else {
            this.SignData = this.DeafultSignData;
        }
    }

    protected OnShow(): void {

    }

    /**
     * 点击领取
     */
    private GetClick() {
       
    }

}


